package com.cskaoyan.module.bean.vo;

import com.cskaoyan.module.pojo.MarketGoods;
import com.cskaoyan.module.pojo.MarketOrder;
import com.cskaoyan.module.pojo.MarketOrderGoods;
import com.cskaoyan.module.pojo.MarketUser;
import lombok.Data;

import java.util.List;

@Data
public class OrderDetailVo {

    private UserOrderDetailVo user;
    private MarketOrder order;
    private List<MarketOrderGoods> orderGoods;

    public static OrderDetailVo data(MarketOrder order,List<MarketOrderGoods> list,UserOrderDetailVo user) {
        OrderDetailVo orderDetailVo = new OrderDetailVo();
        orderDetailVo.setUser(user);
        orderDetailVo.setOrder(order);
        orderDetailVo.setOrderGoods(list);
        return orderDetailVo;
    }
}
